package com.sy.constant;

import java.io.File;

public class AppConstant {
    /**
     * 属性描述: ServletContext中用于保存控制器路径映射关系的属性名
     */
    public static final String SERVLET_CONTEXT_CONTROLLER_AND_METHOD = "controller_and_method";

    /**
     * 属性描述: 服务端请求接口的路径的前缀
     */
    public static final String API_PATH_PREFIX = "/apis";
    /**
     * 属性描述: JSON消息类型
     */
    public static final String MEDIA_TYPE_APPLICATION_JSON = "application/json;charset=utf-8";
    /**
     * 属性描述: 用于保存上传文件的目录
     */
    public static final String UPLOAD_DIR_PATH = "D:" + File.separator + "files";

    /**
     * 属性描述：下载文件的后缀
     */
    public static final String FILE_EXTENSION_JPG = "jpg";
    public static final String FILE_EXTENSION_JPE = "jpe";
    public static final String FILE_EXTENSION_JPEG = "jpeg";
    public static final String FILE_EXTENSION_DOCX = "docx";
    public static final String FILE_EXTENSION_DOC = "doc";
    public static final String FILE_EXTENSION_PPT = "ppt";
    public static final String FILE_EXTENSION_PPTX = "pptx";
    public static final String FILE_EXTENSION_TXT = "txt";
    public static final String FILE_EXTENSION_PNG = "png";
    public static final String FILE_EXTENSION_PDF = "pdf";
    public static final String FILE_EXTENSION_CLASS = "class";
    public static final String FILE_EXTENSION_CML = "cml";
    public static final String FILE_EXTENSION_CSS = "css";
    public static final String FILE_EXTENSION_EXE = "exe";
    public static final String FILE_EXTENSION_GIF = "gif";
    public static final String FILE_EXTENSION_HTML = "html";
    public static final String FILE_EXTENSION_IMG = "txt";
    public static final String FILE_EXTENSION_JAVA = "java";
    public static final String FILE_EXTENSION_JS = "js";
    public static final String FILE_EXTENSION_XML = "xml";


}
